<?php
/**
 *  View Interface
 *
 */
interface Yz_View_Interface
{
    /**
     *  usually called by the response object which is supplied as argument
     *      in order to be notified by the view (set headers, status etc)
     *  @param Yz_HTTP_Response_Interface $rs
     *  @return string
     */
    public function render(Yz_HTTP_Response_Interface $rs);

    /** set the text (string) content of the view
     *  @param string $text
     *  @return chainable
     */
    public function setContent($textContent);
}
